package secretaryGUI;

import secretary.defineSemester;
import flexibility.userData;
import gui.secretaryScreen;
import guiCode.secretaryScreenCode;
import basic.ClientConsole;

import com.sun.rowset.CachedRowSetImpl;

public class viewStudents {

	private userData students = new userData();
	defineSemester ds = new defineSemester();
	updateLowerTableEntries ULTE = new updateLowerTableEntries();
	private secretaryScreenCode ssc;
	private int semesterReal;
	
	public void viewStudents(ClientConsole secretaryConnection,CachedRowSetImpl crs, createSecretaryWindow csw, secretaryScreenCode code){
		//this will show all the student of the semester in the lower table
		ssc = code;
		students.deleteAll();
		students.addData(251);
		students.addData(1);
		semesterReal = ds.identify(ssc.getSemesterForEdit(), secretaryConnection, crs);
		students.addData(semesterReal);
		secretaryConnection.acceptMsg(students);
		crs = secretaryConnection.getResults();
		ULTE.update(csw, crs);
		
	}
}
